import Vue from 'vue'
import Router from 'vue-router'
import sy from '../view/sy.vue'
import gy from '../view/gy.vue'
import cy from '../view/cy.vue'
import jd from '../view/jd.vue'
import xw from '../view/xw.vue'
import lx from '../view/lx.vue'
import cymb from '../view/cymb.vue'
import news from '../view/news.vue'
import xcdt from '../view/xcdt.vue'
import cpxw from '../view/cpxw.vue'
import shop from '../view/shoping.vue'


Vue.use(Router)
export default new Router({
    routes: [
        { path: '/', name: 'sy', component: sy },
        { path: '/gy', name: 'gy', component: gy },
        {
            path: '/cy', name: 'cy', component: cy, children: [

            ]
        },
        { path: '/jd', name: 'jd', component: jd },
        {
            path: '/xw', name: 'xw', redirect: '/xw/type/new', component: xw, children: [
                // { path: 'type/:type', name: 'news', component: news }
                { path: '/xw/type/new', name: 'news', component: news },
                { path: '/xw/type/newcp', name: 'xcdt', component: xcdt },
                { path: '/xw/type/cpnew', name: 'cpxw', component: cpxw },
            ]
        },
        { path: '/lx', name: 'lx', component: lx },
        { path: '/cymb/:id', name: 'cymb', component: cymb },
        { path: '/shop', name: 'shop', component: shop },




    ]

})

